#/bin/bash
cd android-api-doc
for f in $(find developer.android.com/ -type f -name \*.html); do echo $f; mkdir -p ../lib-api/$(echo ${f:32}|sed 's/\(.*\)\/.*/\1/') && perl doc2jstub.pl $f > ../lib-api/${f:32:${#f}-4-32}java; done
cd ..
echo Stub base library created in lib-api directory.
